package com.choosefine.it.company.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.choosefine.it.base.dto.PageDTO;
import com.choosefine.it.company.dao.CompanyEvaluationInfoMapper;
import com.choosefine.it.company.model.vo.CompanyEvaluationInfoVO;
import com.choosefine.it.company.service.CompanyEvaluationInfoService;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;

/**
 * @author chenjian
 * @date 2016-12-3 上午10:10:34
 */
@Service("companyEvaluationInfoService")
public class CompanyEvaluationInfoServiceImpl implements CompanyEvaluationInfoService {
	@Autowired
	private CompanyEvaluationInfoMapper companyEvaluationInfoMapper;
	@Override
	public Page<CompanyEvaluationInfoVO> findCompanyEvaluationInfoList(String userCode,PageDTO pageDto) {
		PageHelper.startPage(pageDto.getPageNum(), pageDto.getPageSize());
		Page<CompanyEvaluationInfoVO> page = companyEvaluationInfoMapper.findCompanyEvaluationInfoList(userCode);
		return page;
	}
}
